package com.demo.dto;


public class ProjectDto {
    /**
     * CREATE TABLE `project` (
     *   `pid` int(11) NOT NULL AUTO_INCREMENT,
     *   `pname` varchar(32) NOT NULL,
     *   `starttime` date DEFAULT NULL,
     *   `endtime` datetime DEFAULT NULL,
     *   `did` varchar(32) DEFAULT NULL,
     *   `cid` varchar(32) DEFAULT NULL,
     *   `updatetime` datetime DEFAULT NULL,
     *   `status` int(11) DEFAULT '1' COMMENT '1代表正常，0代表删除',
     *   PRIMARY KEY (`pid`)
     * ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
     */
    private  int pid;
    private String pname;
    private String starttime;
    private String endtime;
    private String did;
    private String cid;
    private String updatetime;
    private int status;

    private String developerName;

    private String contractorName;

    public ProjectDto() {
    }

    public ProjectDto(int pid, String pname, String starttime, String endtime, String did, String cid,
                      String updatetime, int status, String developerName, String contractorName) {
        this.pid = pid;
        this.pname = pname;
        this.starttime = starttime;
        this.endtime = endtime;
        this.did = did;
        this.cid = cid;
        this.updatetime = updatetime;
        this.status = status;
        this.developerName = developerName;
        this.contractorName = contractorName;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDeveloperName() {
        return developerName;
    }

    public void setDeveloperName(String developerName) {
        this.developerName = developerName;
    }

    public String getContractorName() {
        return contractorName;
    }

    public void setContractorName(String contractorName) {
        this.contractorName = contractorName;
    }

    @Override
    public String toString() {
        return "ProjectDto{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", starttime='" + starttime + '\'' +
                ", endtime='" + endtime + '\'' +
                ", did='" + did + '\'' +
                ", cid='" + cid + '\'' +
                ", updatetime='" + updatetime + '\'' +
                ", status=" + status +
                ", developerName='" + developerName + '\'' +
                ", contractorName='" + contractorName + '\'' +
                '}';
    }
}
